use crate::controller::user;
use crate::{bootstrap::AppState, router};
use axum::{
    routing::{delete, get, post, put},
    Router,
};

use super::users_router;
// use utoipa::OpenApi;

// #[derive(OpenApi)]
// #[openapi(paths(user::login))]
pub(super) struct UserApi;

pub fn user_router(state: &AppState) -> Router<AppState> {
    let router = Router::new()
        .route("/login", post(user::user::login))
        .with_state(state.clone());
    router
}
